﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Coldairarrow.Util
{
    public class ResultEntityDTO
    {
        /// <summary>
        /// 
        /// </summary>
        public Result Result { get; set; }
    }

    public class Errors
    {
        /// <summary>
        /// 
        /// </summary>
        public string FieldName { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string Message { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int DIndex { get; set; }
    }

    public class SuccessEntitys
    {
        /// <summary>
        /// 
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string Number { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int DIndex { get; set; }
    }

    public class ConvertResponseStatus
    {
        /// <summary>
        /// 
        /// </summary>
        public bool IsSuccess { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<string> Errors { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<string> SuccessEntitys { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public List<string> SuccessMessages { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int MsgCode { get; set; }
    }

    public class ResponseStatus
    {
        /// <summary>
        /// 
        /// </summary>
        public int ErrorCode { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public bool IsSuccess { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public object Errors { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public object SuccessEntitys { get; set; }
        /// <summary>
        /// 
        /// </summary>
        //public List<SuccessEntitys> SuccessEntitys { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public object SuccessMessages { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int MsgCode { get; set; }
    }

    public class Result
    {
        /// <summary>
        /// 
        /// </summary>
        public ResponseStatus ResponseStatus { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public ConvertResponseStatus ConvertResponseStatus { get; set; }
    }
}
